home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Interactive Web Graphics with Shout 3D
/
Interactive Web Graphics With Shout 3D.iso
/
mac
/
Shout3Ddemo
/
Shout3d_runtime
/
demos
/
javascript_change_fovMapping.ht
< prev
next >
Wrap
Text File
|
2000-11-06
|
2KB
|
44 lines
<HTML>
<HEAD>
<TITLE>fovMapping demo -- by Shout Interactive</TITLE>
</HEAD>
<SCRIPT language="JavaScript">
function shortest(){
vp = document.Shout3D.getCurrentBindableNode("Viewpoint");
vp.fovMapping.setValue("SHORTEST");
}
function horizontal(){
vp = document.Shout3D.getCurrentBindableNode("Viewpoint");
vp.fovMapping.setValue("HORIZONTAL");
}
function vertical(){
vp = document.Shout3D.getCurrentBindableNode("Viewpoint");
vp.fovMapping.setValue("VERTICAL");
}
function diagonal(){
vp = document.Shout3D.getCurrentBindableNode("Viewpoint");
vp.fovMapping.setValue("DIAGONAL");
}
</SCRIPT>
<BODY>
<APPLET MAYSCRIPT NAME="Shout3D" CODEBASE="../codebase" CODE="applets/ExamineApplet.class" WIDTH=75% HEIGHT=75%>
<param name="src" value="models/renderTests/multimesh_chrome.wrl">
<param name="backgroundColorR" value="0">
<param name="backgroundColorG" value="0">
<param name="backgroundColorB" value="0">
<param name="panelAutoFillsApplet" value="true">
<param name="pixelDoubling" value="true">
</APPLET>
<BR>
The fovMapping controls which dimension of the applet corresponds to
the camera field of view. When you resize the browser, the field of view
in the fovMapping dimension will remain the same.</A><BR>
<A HREF="javascript: shortest()">SHORTEST fovMapping - the shorter of vertical/horizontal will match the fov.</A><BR>
<A HREF="javascript: horizontal()">HORIZONTAL fovMapping - horizontal fov remains constant.</A><BR>
<A HREF="javascript: vertical()">VERTICAL fovMapping - vertical fov remains constant.</A><BR>
<A HREF="javascript: diagonal()">DIAGONAL fovMapping - diagonal fov remains constant.</A><BR>
</BODY>
</HTML>